/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-04-07 10:55:38
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-07-16 22:05:10
 */
import React, { useState, useRef, useEffect, useCallback } from "react";
import { Picker } from "@/hocs";

export default (props) => {
  const [visible, setVisible] = useState(false);
  return (
    <div>
      <p onClick={() => setVisible(true)}>on</p>
      <Picker
        data={[
          { text: "cx", value: "cx", check: false },
          { text: "cx1", value: "cx1", check: true },
          { text: "cx2", value: "cx2", check: false },
        ]}
        type="checkbox"
        visible={visible}
        onCancel={() => setVisible(false)}
        title={"cx"}
        onChange={(current, data) => {
          console.log(current);
          console.log(data);
        }}
      />
    </div>
  );
};
